﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Grundy.Common.Tests
{
    [TestClass]
    public class IdentifierTests
    {
        [TestMethod]
        public void Should_copy_identifier()
        {
            var pi = new ProcessorIdentifier{Value = new Random().Next().ToString(), Ignore = false};
            var copy = pi.Copy();
            Assert.AreEqual(pi.Ignore, copy.Ignore);
            Assert.AreEqual(pi.Value, copy.Value);
            Assert.IsFalse(object.ReferenceEquals(pi, copy));
        }
    }
}
